import Vue from 'vue';
import App from './App.vue';
//三级联动组件---全局组件
import TypeNav from '@/components/TypeNav';
import Carousel from '@/components/Carousel';

Vue.component(TypeNav.name,TypeNav);
Vue.component(Carousel.name,Carousel);
//引入路由
import router from './router';
import store from './store';
import '@/mock/mockServe';
import 'swiper/swiper-bundle.min.css';
import { reqGetSearchInfo } from './api';
console.log('req',reqGetSearchInfo({}));
new Vue({
  //注册路由信息，组件身上都拥有$router和$route属性；注册仓库，组件实例身上会多一个$store属性
  render: h => h(App),
  router, //注册路由
  store
}).$mount('#app')
